package com.xiake.utils;

import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {
	public static Properties p = new Properties();
	static {
		// 生成输入流  
        InputStream ins=PropertiesUtils.class.getResourceAsStream("/prop/urlhost.properties");  
        try {
            p.load(ins);  
        } catch (Exception e) {  
            e.printStackTrace();  
        }  
	}
	public static String findHost(String key){
        String value = p.getProperty(key);
		return value;
	}
}
